.class Lcom/glympse/platform/ProviderSkyhook$MyRegistrationCallback;
.super Ljava/lang/Object;
.source "ProviderSkyhook.java"

# interfaces
.implements Lcom/skyhookwireless/wps/RegistrationCallback;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/platform/ProviderSkyhook;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "MyRegistrationCallback"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/glympse/platform/ProviderSkyhook;


# direct methods
.method constructor <init>(Lcom/glympse/platform/ProviderSkyhook;)V
    .locals 0
    .parameter

    .prologue
    .line 305
    iput-object p1, p0, Lcom/glympse/platform/ProviderSkyhook$MyRegistrationCallback;->this$0:Lcom/glympse/platform/ProviderSkyhook;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public done()V
    .locals 1

    .prologue
    .line 319
    const-string v0, "MyRegistrationCallback.done()"

    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/String;)V

    .line 320
    return-void
.end method

.method public handleError(Lcom/skyhookwireless/wps/WPSReturnCode;)Lcom/skyhookwireless/wps/WPSContinuation;
    .locals 3
    .parameter "eError"

    .prologue
    const/4 v2, 0x1

    .line 325
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "MyRegistrationCallback.handleError("

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ")"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/String;)V

    .line 328
    sget-object v0, Lcom/skyhookwireless/wps/WPSReturnCode;->WPS_OK:Lcom/skyhookwireless/wps/WPSReturnCode;

    if-eq v0, p1, :cond_0

    .line 330
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v0

    iget-object v0, v0, Lcom/glympse/platform/Platform;->m_oLocManager:Lcom/glympse/platform/LocManager;

    const/4 v1, 0x0

    invoke-virtual {v0, v2, v1}, Lcom/glympse/platform/LocManager;->IfProviderSetProvider(II)V

    .line 333
    :cond_0
    iget-object v0, p0, Lcom/glympse/platform/ProviderSkyhook$MyRegistrationCallback;->this$0:Lcom/glympse/platform/ProviderSkyhook;

    iget-boolean v0, v0, Lcom/glympse/platform/ProviderSkyhook;->m_fRunning:Z

    if-eqz v0, :cond_1

    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v0

    iget-object v0, v0, Lcom/glympse/platform/Platform;->m_oLocManager:Lcom/glympse/platform/LocManager;

    iget v0, v0, Lcom/glympse/platform/LocManager;->m_eLocProvider:I

    if-ne v2, v0, :cond_1

    .line 334
    sget-object v0, Lcom/skyhookwireless/wps/WPSContinuation;->WPS_CONTINUE:Lcom/skyhookwireless/wps/WPSContinuation;

    .line 333
    :goto_0
    return-object v0

    .line 334
    :cond_1
    sget-object v0, Lcom/skyhookwireless/wps/WPSContinuation;->WPS_STOP:Lcom/skyhookwireless/wps/WPSContinuation;

    goto :goto_0
.end method

.method public handleSuccess()V
    .locals 3

    .prologue
    .line 310
    const-string v0, "MyRegistraotinCallback.handleSuccess()"

    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/String;)V

    .line 313
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v0

    new-instance v1, Lcom/glympse/platform/ProviderSkyhook$PostAccountCreationToMainThread;

    iget-object v2, p0, Lcom/glympse/platform/ProviderSkyhook$MyRegistrationCallback;->this$0:Lcom/glympse/platform/ProviderSkyhook;

    invoke-direct {v1, v2}, Lcom/glympse/platform/ProviderSkyhook$PostAccountCreationToMainThread;-><init>(Lcom/glympse/platform/ProviderSkyhook;)V

    invoke-virtual {v0, v1}, Lcom/glympse/platform/Platform;->PostToMainThread(Lcom/glympse/platform/GRunnable;)Z

    .line 314
    return-void
.end method
